package com.fire.modules.base.service.impl;

import com.fire.modules.base.service.TbCompanyService;
import com.fire.modules.dao.TbCompanyDao;
import com.fire.modules.entity.TbCompanyEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbCompanyServiceImpl implements TbCompanyService {
	@Autowired
	private TbCompanyDao companyDao;
	
	@Override
	public TbCompanyEntity queryObject(Integer id){
		return companyDao.queryObject(id);
	}

	@Override
	public TbCompanyEntity queryByObject(TbCompanyEntity tbCompanyEntity) {
		return companyDao.queryByObject(tbCompanyEntity);
	}

	@Override
	public List<TbCompanyEntity> queryList(Map<String, Object> map){
		return companyDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return companyDao.queryTotal(map);
	}
	
	@Override
	public void save(TbCompanyEntity company){
		companyDao.save(company);
	}
	
	@Override
	public void update(TbCompanyEntity company){
		companyDao.update(company);
	}
	
	@Override
	public void delete(Integer id){
		companyDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		companyDao.deleteBatch(ids);
	}
	
}
